package com.jf.springboot.web;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA
 * Description:
 * User:22954
 * Date:2024-11-25
 * Time:20:06
 */
@RestController
public class HelloController {
    @Value("${my.website}")
    private String website;
    @GetMapping("/hello")
    public String hello() {
        System.out.println("website: " + website);
        return "Hello World";
    }
}
